﻿@{
    var references = ViewData.Model;

    <table>
    <thead>
        <h4>References</h4>
        <th>Name</th>
        <th>Type</th>
        <th>IsCached</th>
        <th>Book name</th>
        <th>Book author</th>
        <th>Book ISBN</th>
        <th>Book price</th>
    </thead>
    
    @Html.ActionLink("Create", "Create", "References")
    
    @foreach (var reference in references)
    {
        <tr>
            <td>@reference.Name</td>
            <td>@reference.Type</td>
            <td>@reference.IsCached</td>
            <td>@reference.Book.Name</td>
            <td>@reference.Book.Author</td>
            <td>@reference.Book.ISBN</td>
            <td>@reference.Book.Price</td>
        </tr>    
    }

    </table>
  }
